package com.zuo.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zuo.mall.entity.PmsSkuStock;

import java.util.List;

public interface PmsSkuStockService extends IService<PmsSkuStock> {

    /**
     * 根据产品id 和skuCode 关键字模糊查询
     * @param pid
     * @param keyword
     * @return
     */
    List<PmsSkuStock> getList(Long pid, String keyword);

    /**
     * 根据productId 删除所有然后插入新的记录
     * @param pid
     * @param skuStockList
     * @return
     */
    int updateBatchByProductId(Long pid, List<PmsSkuStock> skuStockList);
}
